BuffEffect8 = BaseBuffEffect:new();
BuffEffect8.__index = BuffEffect8;

function BuffEffect8:new()
    local object = {};
    setmetatable(object, BuffEffect8);
    return object;
end

function BuffEffect8:add(fight,buff)
    local target = buff.target;
    local fighter = buff.source;
    
    -- 拉到身前
    local buffEffectValue = decodeJsonStrToTabel(buff.buffBean.f_BuffEffectValue);
    local leftOrRight = FightDamageManager.leftOrRight1(fighter, target);
    target.position.x = fighter.position.x + leftOrRight * buffEffectValue[1] / EnumConst.TEN_THOUSANDTH;
    target.position.y = fighter.position.y;
    checkOut(target,EnumConst.FIGHT_INNER_ROUND);
    local oldPos = target:getPosition();
    target:setPosition(Vector3(target.position.x,oldPos.y,target.position.y));

    fightLog("[EFFECT]Fighter "..buff.target.fighterId.." Buff"..buff.modelId.." 触发拉人效果，坐标改变为："..printVector2(target.position.x,target.position.y));
    return BaseBuffEffect:add(fight, buff);
end